package com.car.car.exception;

import com.car.car.enums.ResultEnums;

public class UserException extends RuntimeException {

    private Integer code;

    public UserException(ResultEnums resultEnums)
    {
        super(resultEnums.getMessage());
        this.code = resultEnums.getCode();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
